<?php

require_once '../inc/config.php';
require_once('../inc/PeDO.php');
$db = new PeDO(DB_SOURCE, DB_USERNAME, DB_PASSWORD);
$db->q('SET foreign_key_checks = 0');
foreach ($db->qc('SHOW TABLES') as $t) $db->q('TRUNCATE TABLE ' . $t);
session_start();
$_SESSION = array();
header('Content-Type: text/plain');
echo "NOTICE: All tables in BingoMe DB have been emptied.\n";
echo "NOTICE: Session data has been cleared.\n";

?>